import request from "@/utils/request";

//列表查询
export const queryPageApi=(name,degree,clazzId,page,pageSize)=>
  request.get(`/students?name=${name}&degree=${degree}&clazzId=${clazzId}&page=${page}&pageSize=${pageSize}`);

//新增学院
export const addStudentApi=(student) =>request.post("/students",student);

//根据id查询数据
export const queryByIdApi=(id) =>request.get(`/students/${id}`);

//修改
export const updateStudentApi=(student) =>request.put("/students",student);

//删除
export const deleteStuApi=(ids) =>request.delete(`/students/${ids}`);

//违纪数据保存
export const stuDisciplineApi=(id,score) =>request.put(`/students/violation/${id}/${score}`);